﻿<Window x:Class="RssBar.OptionsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Okno konfiguracji..." 
        Icon="/RssBar;component/Images/Newsfeed-RSS-icon.png" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" MinHeight="460" MinWidth="568" SizeToContent="WidthAndHeight"
        Closing="Window_Closing" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="75" />
            <RowDefinition Height="*" />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        
        <Grid x:Name="header" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="45" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Image x:Name="optionsIcon" 
                   Grid.RowSpan="2"
                   Stretch="Fill"
                   Margin="5"
                   Source="/RssBar;component/Images/Configuration-Settings-icon1.png" />
            <Label Grid.Row="0" 
                   Grid.Column="1" 
                   FontSize="26" 
                   x:Name="lblTitle"
                   FontWeight="Bold"
                   Margin="25,0,0,0">
                Opcje konfiguracji...
            </Label>
            <Label Grid.Row="1"
                   Grid.Column="1"
                   x:Name="lblDescritpion"
                   Margin="25,0,0,0"
                   VerticalAlignment="Top">
                To okno pozwoli Ci skonfigurować aplikację, dostosowując ją do Twoich potrzeb.
            </Label>
        </Grid>
        <Border x:Name="navigation"
                Grid.Row="1"
                Grid.RowSpan="2"
                Background="WhiteSmoke"
                BorderThickness="0,2,0,0"
                BorderBrush="White" >
            <StackPanel Margin="5" 
                        x:Name="spNavigationButtons" />
        </Border>
        <Border x:Name="content"
                Grid.Row="1"
                Grid.Column="1"
                BorderThickness="4,2,0,0"
                BorderBrush="White"
                Background="WhiteSmoke">
            <StackPanel x:Name="spPage" />
        </Border>
        <Border x:Name="buttons"
                Grid.Row="2"
                Grid.Column="1"
                BorderThickness="4,2,0,0"
                BorderBrush="White"
                Background="WhiteSmoke">
            <StackPanel Orientation="Horizontal"
                        FlowDirection="RightToLeft">
                <Button x:Name="btnCancel"
                        Width="75"
                        Height="23"
                        Margin="20,5,5,5"
                        Content="Anuluj"
                        Click="btnCancel_Click" />
                <Button x:Name="btnOK"
                        Width="75"
                        Height="23"
                        Margin="5"
                        Content="OK"
                        Click="btnOK_Click" />
            </StackPanel>
        </Border>
    </Grid>
</Window>
